#ifndef MY_LIST_H
#define MY_LIST_H

/* hash table bucket */
typedef struct Record
{
    unsigned int id;
    char* name;
} Record;

#define ELEMENTS_PER_NODE 3
typedef struct Node
{
    Record records[ELEMENTS_PER_NODE];
    struct Node* next;
    int occupied;
} Node;

typedef struct MyList {
	Node* head;
} MyList;


void insert_record_my_list (MyList* list, unsigned int id, char* name);
Record* retrieve_record_my_list (MyList* list, unsigned int id);
void clear_all_my_list (MyList* list);


MyList* create_new_my_list();



Record* get_record_in_node(Node* node, unsigned int id);




#endif
